home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacAddict 123
/
MacAddict_123_2006_11.iso
/
Software
/
Productivity
/
iClip lite 2.wdgt
/
js
/
prefs.js
< prev
next >
Wrap
Text File
|
2006-06-14
|
481b
|
23 lines
// Copyright © 2006, Inventive. //
// Functions //
function getPref(key, defaultValue) {
if (window.widget) {
if (widget.preferenceForKey(createKey(key)) != null)
return widget.preferenceForKey(createKey(key));
}
return defaultValue;
}
function setPref(key, value) {
if (window.widget)
widget.setPreferenceForKey(value, createKey(key));
}
function createKey(key) {
if (window.widget)
return widget.identifier + "-" + key;
else
return key;
}